From: Eli Zaretskii Date: Thu, 6 Mar 2025 13:49:27 +0000 (+0200) Subject: Avoid warnings about 'image-scaling-factor' in builds --without-x X-Git-Tag: archive/raspbian/1%30.2+1-2+rpi1^2~2^2~24^2~222 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=bd9c76ab175cde67fc98849d9d216c2ee4373042;p=emacs.git Avoid warnings about 'image-scaling-factor' in builds --without-x * lisp/cus-start.el (standard): Exclude 'image-*' options if Emacs was built without GUI support. (Bug#76716) --- diff --git a/lisp/cus-start.el b/lisp/cus-start.el index 0f7d7c3c020..91cc6e22152 100644 --- a/lisp/cus-start.el +++ b/lisp/cus-start.el @@ -908,6 +908,8 @@ since it could result in memory overflow and make Emacs crash." (fboundp 'x-create-frame)) ((string-match "tab-bar-" (symbol-name symbol)) (fboundp 'x-create-frame)) + ((string-match "image-" (symbol-name symbol)) + (fboundp 'x-create-frame)) ((equal "vertical-centering-font-regexp" (symbol-name symbol)) ;; Any function from fontset.c will do.